<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="../js/vue.js"></script>
   
</head>
<body>
    <div id="root">
        <h1>插值语法 </h1> 
        {{name}}
        {{address.toUpperCase()}}
        <hr/>
        <h3>
        指令语法
        </h3>
        <a :href="url">这是一個url</a>
    </div>

    <script type="text/javascript">
     
        Vue.config.productionTip=false //关闭开发者环境下的提示
        const x=new Vue(
            {
                el:'#root', //将id为root的容器给el
                data:{//data中用于存储数据,暂时写成一个对象
                    name:'尚硅谷' ,
                    address:'beijingchengpingqu',
                    url:'http://www.atguigu.com'
                },
                
            }
            
        )
      
        

    </script>
</body>
</html>